package com.lb.handler;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 功能描述: 直连交换机消费类<br>
 * @Author: Edward
 * @Date: 2021/5/25 10:54
 */
@Slf4j
@Component
@RabbitListener(queues = "lb.queue")
public class DirectReceiver2 {
 
    @RabbitHandler
    public void process(Map msg) {
        log.info("第二个消费者收到信息：{}", msg);
    }
 
}